package com.health.pojo;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

/**
 * @Classname SecurityUser
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/21 16:54
 * @Author RainGrd
 */
@Data
public class SecurityUser implements UserDetails {

    private String uid;

    private String username;

    private String password;

    private Integer sex;

    private String description;

    private Integer age;

    private String birthday;

    private Integer isDeleted;
    private Integer status;//1未禁用0禁用

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return true;
    }

    @Override
    public boolean isAccountNonLocked() {
        return true;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return true;
    }

    @Override
    public boolean isEnabled() {
        return true;
    }
}
